package utils;

import dao.impl.UserDAOJdbcImpl;

/**
 * dao工厂，为调用者提供dao实现类的实例
 * Created by zyb on 14-12-11.
 */
public class DAOFactory {

    public static Object getInstance(String type){
        Object obj = null;
        if("UserDAO".equals(type)){
            obj = new UserDAOJdbcImpl();
        }
        return obj;
    }

}
